﻿<script type="text/javascript">

    // Begin PicNet Table Filter

    $(document).ready(function () {
        // Initialise Plugin


        var grid2 = $('#filterTable');
        var options2 = {
            filteringRows: function (filterStates) {
                grid2.addClass('filtering');
            },
            filteredRows: function (filterStates) {
                grid2.removeClass('filtering');
                setRowCountOnGrid2();
            }
        };
        function setRowCountOnGrid2() {
            var rowcount = grid2.find('tbody tr:not(:hidden)').length;
            $('#rowcount').text('(Rows: ' + rowcount + ')');
        }

        grid2.tableFilter(options2); // No additional filters			
        setRowCountOnGrid2();


    });


    // Einde PicNet Table Filter
    
</script>


<table id='filterTable'>
    <thead>        <tr>            <th>Wanneer</th>            <th filter-type='ddl'>Wie</th>            <th>Wat</th>            <td><span id='rowcount'></span></td>        </tr>    </thead>
    <tbody>        @foreach (System.Data.DataRow row in @Model.Rows)
        {
            <tr>
                @foreach (var item in row.ItemArray)
                    {
                        <td>@item.ToString()</td>
                    }
                </tr>
        }    </tbody></table>